import { defineEventHandler } from 'h3';

export function createTestApi() {
  return defineEventHandler(async (event) => {
    console.log(`🧪 测试路由被调用: ${event.node.req.method} ${event.node.req.url}`);
    return { message: 'API服务器正常工作', timestamp: Date.now() };
  });
} 